CREATE TABLE [dbo].[TDAMAR_CCOB]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[NU_AMAR] [dbo].[TD_VC_008] NOT NULL,
[NU_SECU] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TDAMAR_CC__NU_SE__26CFC035] DEFAULT ((0)),
[CO_TIDO_DEST] [dbo].[TD_VC_003] NULL,
[NU_DOCU_DEST] [dbo].[TD_VC_020] NULL,
[IM_COBR_DEST] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDAMAR_CC__IM_CO__27C3E46E] DEFAULT ((0)),
[IM_SALD_DEST] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDAMAR_CC__IM_SA__28B808A7] DEFAULT ((0)),
[IM_SALD_CDES] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDAMAR_CC__IM_SA__29AC2CE0] DEFAULT ((0)),
[IM_COBR_CDES] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDAMAR_CC__IM_CO__2AA05119] DEFAULT ((0)),
[CO_ENTI] [dbo].[TD_VC_020] NULL,
[TI_COMP_PAGO] [dbo].[TD_VC_003] NULL,
[NU_DOCU_ORIG] [dbo].[TD_VC_020] NULL,
[NU_CUOT] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TDAMAR_CC__NU_CU__2B947552] DEFAULT ((0)),
[IM_MAPL_MORI] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDAMAR_CC__IM_MA__2C88998B] DEFAULT ((0)),
[IM_SXAP_MORI] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDAMAR_CC__IM_SX__2D7CBDC4] DEFAULT ((0)),
[IM_SXAP_MCON] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDAMAR_CC__IM_SX__2E70E1FD] DEFAULT ((0)),
[IM_MAPL_MCON] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDAMAR_CC__IM_MA__2F650636] DEFAULT ((0)),
[ST_CIER_DOCU] [dbo].[TD_VC_001] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDAMAR_CC__CO_US__30592A6F] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDAMAR_CC__FE_US__314D4EA8] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TDAMAR_CC__CO_US__324172E1] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDAMAR_CC__FE_US__3335971A] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDAMAR_CCOB] ADD CONSTRAINT [PK__TDAMAR_C__EE49AE725F5EFD72] PRIMARY KEY CLUSTERED  ([CO_EMPR], [NU_AMAR]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDAMAR_CCOB] ADD CONSTRAINT [FK__TDAMAR_CCOB__220BD66F] FOREIGN KEY ([CO_EMPR], [NU_AMAR]) REFERENCES [dbo].[TCAMAR_CCOB] ([CO_EMPR], [NU_AMAR])
GO
